export let classify = {
    namespaced: true,
    state: {
        classify_data: [],
        classify_flag: false,
    },
    actions: {
        getClassifyData(store, data = {}) {
            let url = "/data/" + data.type + "/" + data.count + "/" + data.page;
            axios.get(url).then(({
                data
            }) => {
                store.commit("setClassifyData", data.results)
            });
        },
    },
    mutations: {
        setClassifyData(state, data) {
            state.classify_data = data;
            state.classify_flag = true;
        },
    }
}